package top.scsoul.pas.utils;

public class StringUtil {
    public static boolean isNullOrEmpty(String... str) {
        for (String s : str) {
            if (s == null || "".equals(s.trim())) {
                return true;
            }
        }
        return false;
    }

    public static void isNullOrEmptyThrowException(String... str) {
        if (isNullOrEmpty(str)) {
            throw new IllegalArgumentException("参数为空");
        }
    }

    public static String add0before(String str) {
        if (Integer.parseInt(str) < 10) {
            return 0 + str;
        }
        return str;
    }
}
